package Interface;

public class AllTest {
    public static void main(String[] args) {
        BasketballInstructor a = new BasketballInstructor("王强",35);
        System.out.println(a.getName()+a.getAge());
        a.teach();

        TableTennisInstructor b = new TableTennisInstructor("刘军",45);
        System.out.println(b.getName()+b.getAge());
        b.teach();
        b.speak();

        BasketballPlayer c = new BasketballPlayer("张小小",16);
        System.out.println(c.getName()+c.getAge());
        c.learn();


        TableTennisPlayer d = new TableTennisPlayer("王腾飞",18);
        System.out.println(d.getName()+d.getAge());
        d.learn();
        d.speak();
        d.speak();


    }
}
